package com.yiqi.lottery.feature.lottery.contract;

import com.suozhang.framework.entity.bo.UserInfoBo;
import com.suozhang.framework.framework.BasePresenter;
import com.suozhang.framework.framework.BaseView;
import com.yiqi.lottery.entity.bo.LotteryHistoryBo;
import com.yiqi.lottery.entity.bo.LuckyHistoryBo;
import com.yiqi.lottery.entity.bo.OrderBo;
import com.yiqi.lottery.entity.bo.RegisterBo;
import io.reactivex.Observable;

import java.util.List;

public interface LottoContract {

    interface Model {
        Observable<LuckyHistoryBo> getCurrentQi();
        Observable<String> createOrder(OrderBo orderBo);
        Observable<List<LotteryHistoryBo>> getLotteryHistory(String label);
    }

    interface View extends BaseView {
        void showCurrentSuccess(LuckyHistoryBo luckyHistoryBo);
        void showCurrentError(String ex);
        void showCreateOrderSuccess(String luckyHistoryBo);
        void showCreateOrderError(String ex);

        void showLotteryHistorySuccess(List<LotteryHistoryBo> resultBos);

        void showLotteryHistoryError(String error);

    }


    interface Presenter extends BasePresenter {
        void   getCurrentQi();
        void   doCreateOrder(int type, int multiple, String bet_code, String issue,int is_charsing,int charsing_num,int mut_num,int order_amount,String min_reward,String max_reward);
        void getLotteryHistory(String label);
    }
}
